#include "LogEntry.h"

void LogEntry::prompt() const
{
	std::string entry;

	std::cout << std::endl;
	std::cout << "Press 'Enter' for default entries in brackets []" << std::endl;
	std::cout << "Do you want to make logbook entries? [y]: " << std::endl;

	while(true)
	{
		std::cin >> entry;
		if (stricmp(entry.c_str(), "y") == 0)
		{
			// do another stuff
			AddLogEntry addLogEntry;
			addLogEntry.prompt();
			return;
		}
		else if (stricmp(entry.c_str(), "n") == 0)
		{
			// do another stuff
			return;
		}
		else
			invalid("Expected input of 'y' or 'n'.");
	}
	std::cout << std::endl;
}

